package com.prs.crm.domain.flow;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * 
 * @author JohnLan E-mail:JohnMr.Lan@foxmail.com
 * @version 创建时间：2012-7-23 下午05:31:00
 * 
 *          类说明 节点人员
 */
@Entity
@Table(name = "flow_FlowNodePerson")
public class FlowNodePerson extends BaseEntity {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 对应节点名称ID
	 */
	private int nodeName_id;

	/**
	 * 对应节点人员ID
	 */
	private String nodeperson_id;
	private String nodePerson_names;
	
	@ManyToOne
	private WorkFlowNode workFlowNode;
	@ManyToOne
	private Person nodePersonName;
	@ManyToOne
	private WorkFlow workFlow;
	
	private Integer state;
	public String getNodePerson_names() {
		return nodePerson_names;
	}

	public void setNodePerson_names(String nodePersonNames) {
		nodePerson_names = nodePersonNames;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public WorkFlow getWorkFlow() {
		return workFlow;
	}

	public void setWorkFlow(WorkFlow workFlow) {
		this.workFlow = workFlow;
	}

	public WorkFlowNode getWorkFlowNode() {
		return workFlowNode;
	}

	public void setWorkFlowNode(WorkFlowNode workFlowNode) {
		this.workFlowNode = workFlowNode;
	}

	public Person getNodePersonName() {
		return nodePersonName;
	}

	public void setNodePersonName(Person nodePersonName) {
		this.nodePersonName = nodePersonName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public int getNodeName_id() {
		return nodeName_id;
	}

	public void setNodeName_id(int nodeNameId) {
		nodeName_id = nodeNameId;
	}

	public String getNodeperson_id() {
		return nodeperson_id;
	}

	public void setNodeperson_id(String nodepersonId) {
		nodeperson_id = nodepersonId;
	}


}
